<?php

use think\migration\Seeder;

class AppAccount extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $data=[
            'app_id'=>uniqid('im'),
            'secret'=>md5(time()),
            'limit_ip'=>'*',
            'off_time'=>0
        ];

        $this->table('app_account')->insert($data)->save();
    }
}